package com.liuguang.testassert.congfig;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @ClassName: MyPropertySource
 * @Description：
 * @Author: wanghr
 * Date: 9:27 AM 2020/6/29
 * Version: 1.0
 */
@ConfigurationProperties
@Component
@PropertySource(value = "mypropertysource.properties",encoding = "utf-8")
@Data
public class MyPropertySource {
    private String name ;
    private Integer num;
}
